package com.lovo.web.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
//地址实体

@Getter
@Setter
@NoArgsConstructor
@TableName("user_address")
@ApiModel(value = "商城前端用户地址实体", description = "商城前端用户地址实体")
public class UserAddressBean {

    /**
     * 地址id
     */
    @TableId(value = "pk_addressId", type = IdType.AUTO)
    @ApiModelProperty(value = "地址实体ID")
    private long addressId;

    /**
     * 用户外键
     */
    @TableField("fk_userName")
    @ApiModelProperty(value = "用户名")
    private String userName;


    /**
     * 省
     */
    @TableField("a_province")
    @ApiModelProperty(value = "省")
    private String province;

    /**
     * 市
     */
    @TableField("a_city")
    @ApiModelProperty(value = "市")
    private String city;


    /**
     * 区
     */
    @TableField("a_area")
    @ApiModelProperty(value = "区")
    private String area;

    /**
     * 详细地址
     */
    @TableField("a_addressInfo")
    @ApiModelProperty(value = "详细地址")
    private String addressInfo;


    /**
     * 地址状态------0默认地址、1不是默认地址
     */
    @TableField("a_isDefault")
    @ApiModelProperty(value = "地址状态")
    private int isDefault=1;


    /**
     * 收货人电话
     */
    @TableField("a_phone")
    @ApiModelProperty(value = "收货人电话")
    private String phone;


    /**
     * 收货人姓名
     */
    @TableField("a_consignee")
    @ApiModelProperty(value = "收货人姓名")
    private String consignee;

    /**
     * 用户对象
     */
    @TableField(exist = false)
    private UserBean user;

}
